package com.skyon.sdk.bean;

import android.app.Activity;
import android.content.Context;


import com.skyon.sdk.MSUCommon;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * Created by chen on 2018/5/12.
 */

public class ResultBean {
    private String model1 = "";
    private String systemLanguage2 = "";
    private String systemModel3 = "";
    private String sys4 = "";
    private String sim5 = "";
    private String systemVersion6 = "";
    private String countryZipCodeAndNetworkNum7 = "";
    private String IMSI8 = "";
    private String XY9 = "";
    private String runTime10 = "";
    private String altitude11 = "";
    private String time12 = "";
    private String supportGPS13 = "";
    private String location14 = "";
    private String supportBT15 = "";
    private String isWiFiActive16 = "";
    private String isSupportTLY17 = "";
    private String isMobile18 = "";
    private String wifiMac19 = "";
    private String IMEI20 = "";
    private String phoneNum21 = "";
    private String deviceId22 = "";
    private String iPAddress23 = "";
    private String realScreenSize24 = "";
    private String densityDpi25 = "";
    private String simNum26 = "";
    private String NFC27 = "";
    private String sDTotalSize28 = "";
    private String romUsedSize29 = "";
    private String romAvailableSize30 = "";
    private String bluetooth31 = "";
    private String linuxKernalInfoEx32 = "";
    private String cPUSerial33 = "";
    private String cpuName34 = "";
    private String numberOfCPUCores35 = "0";
    private String wifiListData36 = "";
    private String isRoot37 = "";
    private String curCpuFreq38 = "";
    private String status39 = "";
    private String level40 = "";
    private String scale41 = "";
    private String temperature42 = "";
    private String versionCode43 = "";
    private String key44 = "";
    private String appName45 = "";
    private String appProcessName46 = "";
    private String userID47 = "";
    private String errorPage48 = "";
    private String errorTime49 = "";
    private String exceptionInfo50 = "";
    private String errorCpu51 = "";
    private String errorBatteryT52 = "";
    private String errorBatteryD53 = "";
    private String errorMemory54 = "";
    private String errorBgInfo55 = "";
    private String isCharge56 = "";
    private String IDFA57 = "";
    private String viewPage58 = "";
    private String viewVisitTime59 = "";
    private String viewGoneTime60 = "";
    private String viewStayTime61 = "";
    private String collectEventType62 = "";
    private String collectType63 = "";
    private String appId64 = "";
    private String checkId65 = "";
    private String lgnUr66 = "";
    private String uda67 = "";
    private String h5Title68 = "";

    public String getH5Title68() {
        return h5Title68;
    }

    public void setH5Title68(String h5Title68) {
        this.h5Title68 = h5Title68;
    }

    DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd,HH:mm:ss", Locale.CHINA);

    public String getRealScreenSize24() {
        return realScreenSize24;
    }

    public void setRealScreenSize24(String realScreenSize24) {
        this.realScreenSize24 = realScreenSize24;
    }

    public String getModel1() {
        return model1;
    }

    public void setModel1(String model1) {
        this.model1 = model1;
    }

    public String getSystemLanguage2() {
        return systemLanguage2;
    }

    public void setSystemLanguage2(String systemLanguage2) {
        this.systemLanguage2 = systemLanguage2;
    }

    public String getSystemModel3() {
        return systemModel3;
    }

    public void setSystemModel3(String systemModel3) {
        this.systemModel3 = systemModel3;
    }

    public String getSys4() {
        return sys4;
    }

    public void setSys4(String sys4) {
        this.sys4 = sys4;
    }

    public String getSim5() {
        return sim5;
    }

    public void setSim5(String sim5) {
        this.sim5 = sim5;
    }

    public String getSystemVersion6() {
        return systemVersion6;
    }

    public void setSystemVersion6(String systemVersion6) {
        this.systemVersion6 = systemVersion6;
    }

    public String getCountryZipCodeAndNetworkNum7() {
        return countryZipCodeAndNetworkNum7;
    }

    public void setCountryZipCodeAndNetworkNum7(String countryZipCodeAndNetworkNum7) {
        this.countryZipCodeAndNetworkNum7 = countryZipCodeAndNetworkNum7;
    }

    public String getIMSI8() {
        return IMSI8;
    }

    public void setIMSI8(String IMSI8) {
        this.IMSI8 = IMSI8;
    }

    public String getXY9() {
        return XY9;
    }

    public void setXY9(String XY9) {
        this.XY9 = XY9;
    }

    public String getRunTime10() {
        return runTime10;
    }

    public void setRunTime10(String runTime10) {
        this.runTime10 = runTime10;
    }

    public String getAltitude11() {
        return altitude11;
    }

    public void setAltitude11(String altitude11) {
        this.altitude11 = altitude11;
    }

    public String getTime12() {
        return time12;
    }

    public void setTime12(String time12) {
        this.time12 = time12;
    }

    public String getSupportGPS13() {
        return supportGPS13;
    }

    public void setSupportGPS13(String supportGPS13) {
        this.supportGPS13 = supportGPS13;
    }

    public String getLocation14() {
        return location14;
    }

    public void setLocation14(String location14) {
        this.location14 = location14;
    }

    public String getSupportBT15() {
        return supportBT15;
    }

    public void setSupportBT15(String supportBT15) {
        this.supportBT15 = supportBT15;
    }

    public String getIsWiFiActive16() {
        return isWiFiActive16;
    }

    public void setIsWiFiActive16(String isWiFiActive16) {
        this.isWiFiActive16 = isWiFiActive16;
    }

    public String getIsSupportTLY17() {
        return isSupportTLY17;
    }

    public void setIsSupportTLY17(String isSupportTLY17) {
        this.isSupportTLY17 = isSupportTLY17;
    }

    public String getIsMobile18() {
        return isMobile18;
    }

    public void setIsMobile18(String isMobile18) {
        this.isMobile18 = isMobile18;
    }

    public String getWifiMac19() {
        return wifiMac19;
    }

    public void setWifiMac19(String wifiMac19) {
        this.wifiMac19 = wifiMac19;
    }

    public String getIMEI20() {
        return IMEI20;
    }

    public void setIMEI20(String IMEI20) {
        this.IMEI20 = IMEI20;
    }

    public String getPhoneNum21() {
        return phoneNum21;
    }

    public void setPhoneNum21(String phoneNum21) {
        this.phoneNum21 = phoneNum21;
    }

    public String getDeviceId22() {
        return deviceId22;
    }

    public void setDeviceId22(String deviceId22) {
        this.deviceId22 = deviceId22;
    }

    public String getiPAddress23() {
        return iPAddress23;
    }

    public void setiPAddress23(String iPAddress23) {
        this.iPAddress23 = iPAddress23;
    }

    public String getDensityDpi25() {
        return densityDpi25;
    }

    public void setDensityDpi25(String densityDpi25) {
        this.densityDpi25 = densityDpi25;
    }

    public String getSimNum26() {
        return simNum26;
    }

    public void setSimNum26(String simNum26) {
        this.simNum26 = simNum26;
    }

    public String getNFC27() {
        return NFC27;
    }

    public void setNFC27(String NFC27) {
        this.NFC27 = NFC27;
    }

    public String getsDTotalSize28() {
        return sDTotalSize28;
    }

    public void setsDTotalSize28(String sDTotalSize28) {
        this.sDTotalSize28 = sDTotalSize28;
    }

    public String getRomUsedSize29() {
        return romUsedSize29;
    }

    public void setRomUsedSize29(String romUsedSize29) {
        this.romUsedSize29 = romUsedSize29;
    }

    public String getRomAvailableSize30() {
        return romAvailableSize30;
    }

    public void setRomAvailableSize30(String romAvailableSize30) {
        this.romAvailableSize30 = romAvailableSize30;
    }

    public String getBluetooth31() {
        return bluetooth31;
    }

    public void setBluetooth31(String bluetooth31) {
        this.bluetooth31 = bluetooth31;
    }

    public String getLinuxKernalInfoEx32() {
        return linuxKernalInfoEx32;
    }

    public void setLinuxKernalInfoEx32(String linuxKernalInfoEx32) {
        this.linuxKernalInfoEx32 = linuxKernalInfoEx32;
    }

    public String getcPUSerial33() {
        return cPUSerial33;
    }

    public void setcPUSerial33(String cPUSerial33) {
        this.cPUSerial33 = cPUSerial33;
    }

    public String getCpuName34() {
        return cpuName34;
    }

    public void setCpuName34(String cpuName34) {
        this.cpuName34 = cpuName34;
    }

    public String getNumberOfCPUCores35() {
        return numberOfCPUCores35;
    }

    public void setNumberOfCPUCores35(String numberOfCPUCores35) {
        this.numberOfCPUCores35 = numberOfCPUCores35;
    }

    public String getWifiListData36() {
        return wifiListData36;
    }

    public void setWifiListData36(String wifiListData36) {
        this.wifiListData36 = wifiListData36;
    }

    public String getIsRoot37() {
        return isRoot37;
    }

    public void setIsRoot37(String isRoot37) {
        this.isRoot37 = isRoot37;
    }

    public String getCurCpuFreq38() {
        return curCpuFreq38;
    }

    public void setCurCpuFreq38(String curCpuFreq38) {
        this.curCpuFreq38 = curCpuFreq38;
    }

    public String getStatus39() {
        return status39;
    }

    public void setStatus39(String status39) {
        this.status39 = status39;
    }

    public String getLevel40() {
        return level40;
    }

    public void setLevel40(String level40) {
        this.level40 = level40;
    }

    public String getScale41() {
        return scale41;
    }

    public void setScale41(String scale41) {
        this.scale41 = scale41;
    }

    public String getTemperature42() {
        return temperature42;
    }

    public void setTemperature42(String temperature42) {
        this.temperature42 = temperature42;
    }

    public String getVersionCode43() {
        return versionCode43;
    }

    public void setVersionCode43(String versionCode43) {
        this.versionCode43 = versionCode43;
    }

    public String getKey44() {
        return key44;
    }

    public void setKey44(String key44) {
        this.key44 = key44;
    }

    public String getAppName45() {
        return appName45;
    }

    public void setAppName45(String appName45) {
        this.appName45 = appName45;
    }

    public String getAppProcessName46() {
        return appProcessName46;
    }

    public void setAppProcessName46(String appProcessName46) {
        this.appProcessName46 = appProcessName46;
    }

    public String getUserID47() {
        return userID47;
    }

    public void setUserID47(String userID47) {
        this.userID47 = userID47;
    }

    public String getErrorPage48() {
        return errorPage48;
    }

    public void setErrorPage48(String errorPage48) {
        this.errorPage48 = errorPage48;
    }

    public String getErrorTime49() {
        return errorTime49;
    }

    public void setErrorTime49(String errorTime49) {
        this.errorTime49 = errorTime49;
    }

    public String getExceptionInfo50() {
        return exceptionInfo50;
    }

    public void setExceptionInfo50(String exceptionInfo50) {
        this.exceptionInfo50 = exceptionInfo50;
    }

    public String getErrorCpu51() {
        return errorCpu51;
    }

    public void setErrorCpu51(String errorCpu51) {
        this.errorCpu51 = errorCpu51;
    }

    public String getErrorBatteryT52() {
        return errorBatteryT52;
    }

    public void setErrorBatteryT52(String errorBatteryT52) {
        this.errorBatteryT52 = errorBatteryT52;
    }

    public String getErrorBatteryD53() {
        return errorBatteryD53;
    }

    public void setErrorBatteryD53(String errorBatteryD53) {
        this.errorBatteryD53 = errorBatteryD53;
    }

    public String getErrorMemory54() {
        return errorMemory54;
    }

    public void setErrorMemory54(String errorMemory54) {
        this.errorMemory54 = errorMemory54;
    }

    public String getErrorBgInfo55() {
        return errorBgInfo55;
    }

    public void setErrorBgInfo55(String errorBgInfo55) {
        this.errorBgInfo55 = errorBgInfo55;
    }


    public String getIDFA57() {
        return IDFA57;
    }

    public void setIDFA57(String IDFA57) {
        this.IDFA57 = IDFA57;
    }

    public String getViewPage58() {
        return viewPage58;
    }

    public void setViewPage58(String viewPage58) {
        this.viewPage58 = viewPage58;
    }

    public String getViewVisitTime59() {
        return viewVisitTime59;
    }

    public void setViewVisitTime59(String viewVisitTime59) {
        this.viewVisitTime59 = viewVisitTime59;
    }

    public String getViewGoneTime60() {
        return viewGoneTime60;
    }

    public void setViewGoneTime60(String viewGoneTime60) {
        this.viewGoneTime60 = viewGoneTime60;
    }

    public String getViewStayTime61() {
        return viewStayTime61;
    }

    public void setViewStayTime61(String viewStayTime61) {
        this.viewStayTime61 = viewStayTime61;
    }

    public String getIsCharge56() {
        return isCharge56;
    }

    public void setIsCharge56(String isCharge56) {
        this.isCharge56 = isCharge56;
    }


    public String getCheckId65() {
        return checkId65;
    }

    public void setCheckId65(String checkId65) {
        this.checkId65 = checkId65;
    }

    public String getLgnUr66() {
        return lgnUr66;
    }

    public void setLgnUr66(String lgnUr66) {
        this.lgnUr66 = lgnUr66;
    }

    public String getUda67() {
        return uda67;
    }

    public void setUda67(String uda67) {
        this.uda67 = uda67;
    }

    public String getAppId64() {
        return appId64;
    }

    public void setAppId64(String appId64) {
        this.appId64 = appId64;
    }

    public String getCollectEventType62() {
        return collectEventType62;
    }

    public void setCollectEventType62(String collectEventType62) {
        this.collectEventType62 = collectEventType62;
    }

    public String getCollectType63() {
        return collectType63;
    }

    public void setCollectType63(String collectType63) {
        this.collectType63 = collectType63;
    }

    /**
     * 首次启动采集
     *
     * @param context
     */
    public ResultBean setUpFirstInfo(Context context, ResultBean mResultBean) {
        mResultBean.setModel1(MSUCommon.model1);
        mResultBean.setSystemLanguage2(MSUCommon.getSystemLanguage2());
        mResultBean.setSystemModel3(MSUCommon.getSystemModel3());
        mResultBean.setSys4(MSUCommon.getSys4());
        mResultBean.setSim5(MSUCommon.getSim5(context));
        mResultBean.setSystemVersion6(MSUCommon.getSystemVersion6());
        mResultBean.setCountryZipCodeAndNetworkNum7(MSUCommon.getNetworkNum7(context) + "," + MSUCommon.getCountryZipCode7(context));
        mResultBean.setIMSI8(MSUCommon.getIMSI8(context));
        mResultBean.setXY9(MSUCommon.getXY9(context));
        mResultBean.setRunTime10(MSUCommon.getRunTime10());
        mResultBean.setAltitude11(MSUCommon.getAltitude11(context));
        mResultBean.setTime12(MSUCommon.getTime12());
        mResultBean.setSupportGPS13(MSUCommon.getSupportGPS13(context));
        mResultBean.setLocation14(MSUCommon.getLocation14(context));
        mResultBean.setSupportBT15(MSUCommon.getSupportBT15());
        mResultBean.setIsWiFiActive16(MSUCommon.isWiFiActive16(context));
        mResultBean.setIsSupportTLY17(MSUCommon.isSupportTLY17(context));
        mResultBean.setIsMobile18(MSUCommon.isPad18(context));
        mResultBean.setWifiMac19(MSUCommon.getWifiMac19(context));
        mResultBean.setIMEI20(MSUCommon.getIMEI20(context));
        mResultBean.setPhoneNum21(MSUCommon.getPhoneNum21(context));
        mResultBean.setDeviceId22(MSUCommon.getDeviceId22(context));
        mResultBean.setiPAddress23(MSUCommon.getIPAddress23(context));
        mResultBean.setRealScreenSize24(MSUCommon.getRealScreenSize24(context));
        mResultBean.setDensityDpi25(MSUCommon.getdensityDpi25(context));
        mResultBean.setSimNum26(MSUCommon.getSimNum26(context));
        mResultBean.setNFC27(MSUCommon.getNFC27(context));
        mResultBean.setsDTotalSize28(MSUCommon.getSDTotalSize28(context));
        mResultBean.setRomUsedSize29(MSUCommon.getRomUsedSize29(context));
        mResultBean.setRomAvailableSize30(MSUCommon.getRomAvailableSize30(context));
        mResultBean.setBluetooth31(MSUCommon.getBluetooth31());
        mResultBean.setLinuxKernalInfoEx32(MSUCommon.getLinuxKernalInfoEx32());
        mResultBean.setcPUSerial33(MSUCommon.getCPUSerial33());
        mResultBean.setCpuName34(MSUCommon.getCpuName34());
        mResultBean.setVersionCode43(MSUCommon.getVersionCode43(context));
        mResultBean.setKey44(MSUCommon.getKey44(context));
        mResultBean.setAppName45(MSUCommon.getAppName45(context));
        mResultBean.setAppProcessName46(MSUCommon.getAppProcessName46(context));
        mResultBean.setCollectEventType62("1");
        mResultBean.setCollectType63("初次安装采集");
        mResultBean.setAppId64(MSUCommon.getAppId64(context));
        return mResultBean;
    }

    /**
     * 错误信息采集
     *
     * @param context
     * @param throwable
     * @return
     */
    public ResultBean setUpErrorInfo(Context context, Throwable throwable, ResultBean mResultBean) {

        mResultBean.setModel1(MSUCommon.model1);
        mResultBean.setIMEI20(MSUCommon.getIMEI20(context));
        mResultBean.setDeviceId22(MSUCommon.getDeviceId22(context));
        mResultBean.setCurCpuFreq38(MSUCommon.getCurCpuFreq38());
        if (MSUCommon.resultBean.getStatus39().equals("")||MSUCommon.resultBean.getStatus39()==null){
            String batteryInfo = MSUCommon.getBatteryInfo(context);
            if (!batteryInfo.equals("")){
                String[] split = batteryInfo.split("-");
                try {
                    mResultBean.setStatus39(split[0]);
                    mResultBean.setLevel40(split[1]);
                    mResultBean.setScale41(split[2]);
                    mResultBean.setTemperature42(split[3]);
                    mResultBean.setIsCharge56(split[4]);
                    mResultBean.setErrorBatteryT52(split[3]);//错误发生时的电池温度
                    mResultBean.setErrorBatteryD53(split[1]);//错误发生时的电池电量
                }catch (Exception e){}
            }
        }else {
            mResultBean.setStatus39(MSUCommon.resultBean.getStatus39());
            mResultBean.setLevel40(MSUCommon.resultBean.getLevel40());
            mResultBean.setScale41(MSUCommon.resultBean.getScale41());
            mResultBean.setTemperature42(MSUCommon.resultBean.getTemperature42());
            mResultBean.setIsCharge56(MSUCommon.resultBean.getIsCharge56());
            mResultBean.setErrorBatteryT52(MSUCommon.resultBean.getTemperature42());//错误发生时的电池温度
            mResultBean.setErrorBatteryD53(MSUCommon.resultBean.getLevel40());//错误发生时的电池电量
        }
        mResultBean.setVersionCode43(MSUCommon.getVersionCode43(context));
        mResultBean.setKey44(MSUCommon.getKey44(context));
        mResultBean.setAppName45(MSUCommon.getAppName45(context));
        mResultBean.setAppProcessName46(MSUCommon.getAppProcessName46(context));
        mResultBean.setUserID47(MSUCommon.getUserID47(context));
        mResultBean.setErrorPage48(MSUCommon.viewStack.pop());//错误发生页面
        mResultBean.setErrorTime49(formatter.format(new Date()));//错误发生时间
        mResultBean.setExceptionInfo50(throwable.getMessage());//捕获的异常信息
        mResultBean.setErrorCpu51(MSUCommon.getCurCPU51());//错误发生时的cpu频率
        mResultBean.setErrorMemory54(MSUCommon.getRomTotalSize54(context));//错误发生时的内存情况
        mResultBean.setErrorBgInfo55(MSUCommon.getAppInfos55(context).toString());//错误发生时后台进程情况
        mResultBean.setViewPage58(mResultBean.getErrorPage48());
        mResultBean.setViewVisitTime59(mResultBean.getErrorTime49());
        mResultBean.setCollectEventType62("4");
        mResultBean.setCollectType63("系统崩溃触发采集");
        mResultBean.setAppId64(MSUCommon.getAppId64(context));
        return mResultBean;
    }

    /**
     * 定期循环采集
     *
     * @param context
     * @param mResultBean
     * @return
     */
    public ResultBean setUpCyclicInfo(Context context, ResultBean mResultBean) {
        mResultBean.setModel1(MSUCommon.model1);
        mResultBean.setRunTime10(MSUCommon.getRunTime10());
        mResultBean.setAltitude11(MSUCommon.getAltitude11(context));
        mResultBean.setTime12(MSUCommon.getTime12());
        mResultBean.setSupportGPS13(MSUCommon.getSupportGPS13(context));
        mResultBean.setLocation14(MSUCommon.getLocation14(context));
        mResultBean.setIsWiFiActive16(MSUCommon.isWiFiActive16(context));
        mResultBean.setIMEI20(MSUCommon.getIMEI20(context));
        mResultBean.setPhoneNum21(MSUCommon.getPhoneNum21(context));
        mResultBean.setDeviceId22(MSUCommon.getDeviceId22(context));
        mResultBean.setsDTotalSize28(MSUCommon.getSDTotalSize28(context));
        mResultBean.setRomUsedSize29(MSUCommon.getRomUsedSize29(context));
        mResultBean.setRomAvailableSize30(MSUCommon.getRomAvailableSize30(context));
        mResultBean.setCurCpuFreq38(MSUCommon.getCurCpuFreq38());
        mResultBean.setStatus39(MSUCommon.resultBean.getStatus39());
        mResultBean.setLevel40(MSUCommon.resultBean.getLevel40());
        mResultBean.setScale41(MSUCommon.resultBean.getScale41());
        mResultBean.setTemperature42(MSUCommon.resultBean.getTemperature42());
        mResultBean.setVersionCode43(MSUCommon.getVersionCode43(context));
        mResultBean.setKey44(MSUCommon.getKey44(context));
        mResultBean.setUserID47(MSUCommon.getUserID47(context));
        mResultBean.setCollectEventType62("3");
        mResultBean.setCollectType63("定期循环采集");
        mResultBean.setAppId64(MSUCommon.getAppId64(context));
        return mResultBean;
    }


    /**
     * 首次启动采集
     *
     * @param context
     */
    public ResultBean setUpStartInfo(Context context, ResultBean mResultBean) {
        mResultBean.setModel1(MSUCommon.model1);
        mResultBean.setSim5(MSUCommon.getSim5(context));
        mResultBean.setCountryZipCodeAndNetworkNum7(MSUCommon.getNetworkNum7(context) + "," + MSUCommon.getCountryZipCode7(context));
        mResultBean.setIMSI8(MSUCommon.getIMSI8(context));
        mResultBean.setRunTime10(MSUCommon.getRunTime10());
        mResultBean.setAltitude11(MSUCommon.getAltitude11(context));
        mResultBean.setTime12(MSUCommon.getTime12());
        mResultBean.setLocation14(MSUCommon.getLocation14(context));
        mResultBean.setIsWiFiActive16(MSUCommon.isWiFiActive16(context));
        mResultBean.setWifiMac19(MSUCommon.getWifiMac19(context));
        mResultBean.setIMEI20(MSUCommon.getIMEI20(context));
        mResultBean.setPhoneNum21(MSUCommon.getPhoneNum21(context));
        mResultBean.setDeviceId22(MSUCommon.getDeviceId22(context));
        mResultBean.setiPAddress23(MSUCommon.getIPAddress23(context));
        mResultBean.setSimNum26(MSUCommon.getSimNum26(context));
        mResultBean.setsDTotalSize28(MSUCommon.getSDTotalSize28(context));
        mResultBean.setRomUsedSize29(MSUCommon.getRomUsedSize29(context));
        mResultBean.setRomAvailableSize30(MSUCommon.getRomAvailableSize30(context));
        mResultBean.setBluetooth31(MSUCommon.getBluetooth31());
        mResultBean.setWifiListData36(MSUCommon.getWifiListData36(context));
        mResultBean.setCurCpuFreq38(MSUCommon.getCurCpuFreq38());
        mResultBean.setStatus39(MSUCommon.resultBean.getStatus39());
        mResultBean.setLevel40(MSUCommon.resultBean.getLevel40());
        mResultBean.setScale41(MSUCommon.resultBean.getScale41());
        mResultBean.setTemperature42(MSUCommon.resultBean.getTemperature42());
        mResultBean.setVersionCode43(MSUCommon.getVersionCode43(context));
        mResultBean.setKey44(MSUCommon.getKey44(context));
        mResultBean.setUserID47(MSUCommon.getUserID47(context));
        mResultBean.setCollectEventType62("2");
        mResultBean.setCollectType63("每次启动采集");
        mResultBean.setAppId64(MSUCommon.getAppId64(context));
        return mResultBean;
    }

    /**
     * 自定义事件采集
     *
     * @param context
     */
    public ResultBean setUserDefInfo(Context context, ResultBean mResultBean, String json,String eventNum,String eventComment) {
        mResultBean.setModel1(MSUCommon.model1);
        mResultBean.setIMEI20(MSUCommon.getIMEI20(context));
        mResultBean.setVersionCode43(MSUCommon.getVersionCode43(context));
        mResultBean.setKey44(MSUCommon.getKey44(context));
        mResultBean.setAppName45(MSUCommon.getAppName45(context));
        mResultBean.setAppProcessName46(MSUCommon.getAppProcessName46(context));
        mResultBean.setUserID47(MSUCommon.getUserID47(context));
        mResultBean.setViewPage58(context.getClass().getSimpleName());
        mResultBean.setViewVisitTime59(formatter.format(System.currentTimeMillis()));
        mResultBean.setCollectEventType62(eventNum);
        mResultBean.setCollectType63(eventComment);
        mResultBean.setAppId64(MSUCommon.getAppId64(context));
        mResultBean.setUda67(json);
        return mResultBean;
    }

    @Override
    public String toString() {
        return model1 + "|~|" +
                systemLanguage2 + "|~|" +
                systemModel3 + "|~|" +
                sys4 + "|~|" +
                sim5 + "|~|" +
                systemVersion6 + "|~|" +
                countryZipCodeAndNetworkNum7 + "|~|" +
                IMSI8 + "|~|" +
                XY9 + "|~|" +
                runTime10 + "|~|" +
                altitude11 + "|~|" +
                time12 + "|~|" +
                supportGPS13 + "|~|" +
                location14 + "|~|" +
                supportBT15 + "|~|" +
                isWiFiActive16 + "|~|" +
                isSupportTLY17 + "|~|" +
                isMobile18 + "|~|" +
                wifiMac19 + "|~|" +
                IMEI20 + "|~|" +
                phoneNum21 + "|~|" +
                deviceId22 + "|~|" +
                iPAddress23 + "|~|" +
                realScreenSize24 + "|~|" +
                densityDpi25 + "|~|" +
                simNum26 + "|~|" +
                NFC27 + "|~|" +
                sDTotalSize28 + "|~|" +
                romUsedSize29 + "|~|" +
                romAvailableSize30 + "|~|" +
                bluetooth31 + "|~|" +
                linuxKernalInfoEx32 + "|~|" +
                cPUSerial33 + "|~|" +
                cpuName34 + "|~|" +
                numberOfCPUCores35 + "|~|" +
                wifiListData36 + "|~|" +
                isRoot37 + "|~|" +
                curCpuFreq38 + "|~|" +
                status39 + "|~|" +
                level40 + "|~|" +
                scale41 + "|~|" +
                temperature42 + "|~|" +
                versionCode43 + "|~|" +
                key44 + "|~|" +
                appName45 + "|~|" +
                appProcessName46 + "|~|" +
                userID47 + "|~|" +
                errorPage48 + "|~|" +
                errorTime49 + "|~|" +
                exceptionInfo50 + "|~|" +
                errorCpu51 + "|~|" +
                errorBatteryT52 + "|~|" +
                errorBatteryD53 + "|~|" +
                errorMemory54 + "|~|" +
                errorBgInfo55 + "|~|" +
                isCharge56 + "|~|" +
                IDFA57 + "|~|" +
                viewPage58 + "|~|" +
                viewVisitTime59 + "|~|" +
                viewGoneTime60 + "|~|" +
                viewStayTime61 + "|~|" +
                collectEventType62 + "|~|" +
                collectType63 + "|~|" +
                appId64 + "|~|" +
                checkId65 + "|~|" +
                lgnUr66 + "|~|" +
                uda67 + "|~|" +
                h5Title68 + "|~|-";
    }
}
